<?php
/**
 * @author Nguyen van chi (chinguyen.phpdev@gmail.com)
 * @copyright 2014 - OtcSoft
 */
class Menu_model extends CI_Model
{
	public function getDropdown()
	{
		$this->db->where('menu_type', 2);
		$query=$this->db->get('tbl_menu');
		if($query){
			return $query->result_array();
		}else {
			return false;
		}
	}
	
	
	
	public function getMenudichvu()
	{
		$sql = "SELECT * FROM tbl_menu WHERE menu_type1 = 0 && status = 0 ";
		$query = $this->db->query($sql);
		if($query){
			return $query->result_array();
		}else {
			return false;
		}
	}
	
	public function getMenutintuc()
	{
		$sql = "SELECT * FROM tbl_menu WHERE menu_type1 = 1 && status = 0 ";
		$query = $this->db->query($sql);
		if($query){
			return $query->result_array();
		}else {
			return false;
		}
	}
	
	
	public function getMenuDon()
	{
		$sql = "SELECT * FROM tbl_menu WHERE menu_type1 = 2 && status = 0 ";
		$query = $this->db->query($sql);
		if($query){
			return $query->result_array();
		}else {
			return false;
		}
	}
	
	
	
	
}